##parameters=modelidentitylist=[]

#get complete list of models
allmodels = context.knowledgeengine_securityservice.getModels()

if modelidentitylist==[]:
   return allmodels

orderedmodels=[]
for model in allmodels:
    if model.getIdentity() in modelidentitylist:
        orderedmodels.append(model)

return orderedmodels
